home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / ABWIL097.ZIP;1 / ABWILD.DOC < prev    next >
Encoding:
Text File  |  1993-01-06  |  21.1 KB  |  384 lines

  1. ABWILD v0.97 - Extended Wild-card Batch-File Utility -         Page 1 of 7
  2. ==========================================================================
  3.  
  4.   AAAAAAAA     BBBBBBBB    WW       WW  IIIIII  LL           DDDDDDDDD
  5. AA        AA   BB     BB   WW       WW    II    LL           DD      DD
  6. AA        AA   BB     BB   WW       WW    II    LL           DD       DD
  7. AA        AA   BBBBBBBB    WW       WW    II    LL           DD        DD
  8. AAAAAAAAAAAA   BBBBBBBBB   WW       WW    II    LL           DD        DD
  9. AAAAAAAAAAAA   BB      BB  WW       WW    II    LL           DD        DD
  10. AA        AA   BB      BB  WW   W   WW    II    LL           DD       DD
  11. AA        AA   BB      BB   WW WWW WW     II    LL           DD      DD
  12. AA        AA   BBBBBBBBB     WWW WWW    IIIIII  LLLLLLLLLLL  DDDDDDDDD
  13.  
  14.  
  15. ABWILD v0.97, Released January, 1993
  16.  
  17. ABWILD - (c)1993, AAB Enterprises, Inc.
  18.                   P.O. Box 42051
  19.                   Mississauga, Ontario, CANADA
  20.                   L5M-4Z4
  21.  
  22. ABWILD is a productivity utility designed for knowledgeable MS-DOS users.
  23.  
  24. ABWILD provides users with a method to QUICKLY and EASILY ...
  25.    1) repeat a command which does not support DOS wild-cards (*,?).
  26.    2) recurse sub-directories to a user-selected level
  27.    3) extend wild-card support to directories.
  28.    4) extend wild-card support to Alphabetic, Numeric, and Other (+,=,;).
  29.    5) create batch files for ...
  30.       i) file compression
  31.      ii) file conversion
  32.     iii) file management
  33.      iv) source compilation & linking
  34.  
  35. ABWILD provides programmers with a method of externalizing code for wild-card
  36. and sub-directory support. They can therefore spend more time concentrating on
  37. the functionality of their program, instead of the "Bells & Whistles".
  38.  
  39. ABWILD permits the repeated execution of another program (or batch-file).
  40. For convenience, this program (or Batch-file) will be referred to as the
  41. Subordinate Program for the remainder of this text.
  42.  
  43.  
  44. ABWILD v0.97 - Extended Wild-card Batch-File Utility -         Page 2 of 7
  45. ==========================================================================
  46. ABWILD v0.97 - Wild-card Batch-file Utility - (c)1993, AAB Enterprises, Inc.
  47. *** ABWILD is NOT Free or Public Domain! *** It is UNREGISTERED Shareware! ***
  48. You are encouraged to distribute ABWILD to your friends and co-workers.
  49. ABWILD must be distributed in its entirety, for no charge.
  50. Distributors may charge only a reasonable copying fee for ABWILD.
  51. Fees paid to other than AAB Enterprises, Inc. do NOT include registration.
  52. *** You must NOT modify ABWILD in any manner! *** To do so is PLAGIARISM! ***
  53. AAB Enterprises, Inc is NOT responsible for loss of Data, Programs, Time, etc.
  54. Use of ABWILD constitutes acceptance of this clause.
  55. You are hereby granted a limited licence to evaluate ABWILD over 30 days.
  56. After 30 days, you must REGISTER or REMOVE it from your system.
  57.  
  58. Registration provides...
  59.    i- Most recent, REGISTERED version of ABWILD without the Delay.
  60.   ii- Complete, Up-to-Date & Printed Documentation for ABWILD.
  61.  iii- Shareware versions of other Software Titles from AAB Enterprises, Inc.
  62.   iv- Free BBS support (E.T.A. Summer/1993).
  63.    v- Immunity from Prosecution, A Clear Conscience and a Good Example.
  64. *** Support Shareware!  $30/copy Registration Fee!  (plus $1/Node, $70max) ***
  65. AAB Enterprises, Inc, P.O.Box 42051, Mississauga, Ontario, CANADA, L5M-4Z4
  66.  
  67.   Please wait...  (ESC=Abort)
  68.  
  69. This opening screen shown above contains information pertinent to the Shareware
  70. version of ABWILD. REGISTERED copies will only display this screen upon request.
  71.  
  72. The last line of this screen, ie...
  73.   Press any key...  (ESC=Abort)
  74.                  ...will appear only the required delay interval has elapsed.
  75.  
  76. This screen, the delay interval, and the requirement to press a key are
  77. the only restrictions placed on the Shareware version of this utility.
  78. ABWILD is NOT crippled in any way, and retains all the functionality of the
  79. REGISTERED version. This is the way I've chosen to encourage consistent users
  80. to purchase a registered version of this program. Therefore, please do NOT
  81. write requesting that I remove it. If you don't like it, REGISTER!
  82.  
  83. ***************************************************************************
  84. *** Do NOT attempt to modify ABWILD. To do so would involve PLAGIARISM. ***
  85. ***************************************************************************
  86.  
  87. Although not crippled, ABWILD does contain protection against modification.
  88. The protection will also prevent corrupted versions of ABWILD from being
  89. accidentally distributed due to Disk-Errors. If ABWILD runs at all, you can
  90. be fairly certain that you have an unmodified version.
  91.  
  92. At this time, the protection is NOT complete, so do NOT assume ABWILD is 
  93. free of viruses. As a normal precaution, ALWAYS use a virus scanning utility
  94. on any new programs before installation. This includes off-the-shelf, 
  95. shrink-wrapped software. It has happened before, it will happen again.
  96. AAB Enterprises, Inc. has scanned ABWILD for viruses prior to release.
  97.  
  98. ABWILD v0.97 - Extended Wild-card Batch-File Utility -         Page 3 of 7
  99. ==========================================================================
  100.  
  101. The purpose of ABWILD, as mentioned above, is to provide extended wild-card
  102. support to Subordinate Programs which either do not have it at all or do not
  103. have enough of it.
  104.  
  105. The extended part comes from the fact that ABWILD permits the use of three 
  106. additional wild-card characters (ie... '+', '=' and ';'). While the normal
  107. DOS wild-cards of * and ? match ANY character in the appropriate position,
  108. the ABWILD extended wild-cards match characters selectively. To explain...
  109.    i) '+' will match only Alphabetic characters.
  110.   ii) '=' will match only Numeric characters.
  111.  iii) ';' will match only characters which are neither Alphabetic or Numeric.
  112.  
  113. In some cases, a Subordinate Program will utilize one or more of these ABWILD 
  114. extended wild-card characters as part of its options. If you are using such a
  115. program under ABWILD, the Subordinate Program's option(s) will be interpreted as
  116. File-Description(s) containing wild-cards and ABWILD will operate on it 
  117. accordingly. This, of course, will probably cause ABWILD to produce undesirable
  118. results. To avoid this problem, the use of ABWILD extended wild-cards is an
  119. option and may be disabled using the No-Wilder Option (ie, /NW).
  120.  
  121. Additionally, the Ignore-String option (/ISxxx) can be used to instruct
  122. ABWILD to ignore an individual parameter for the purposes of File-Description 
  123. modification. In this way, the ABWILD Extended Wild-card characters can still 
  124. be used with programs which use these characters as part of their options.
  125.  
  126. The Syntax for the ABWILD command line is very forgiving. The same can
  127. NOT be said of any program which is executed under ABWILD. ABWILD can NOT be
  128. expected to know of and correct the Syntax for every program the user 
  129. may choose to use with it. Therefore, you are responsible for knowing and
  130. using the correct Syntax of the Subordinate Program.
  131.  
  132. No spacing is required in the ABWILD Command-Line Options. However, as shown
  133. in the help screen, each Option must be preceded by a slash (ie... '/').
  134. ABWILD automatically translates its own options from lower to upper case, 
  135. but, does NOT translate the options &/ parameters of the Subordinate Program.
  136. Therefore, once again, you are responsible for knowing whether the Subordinate 
  137. Program requires upper, lower or mixed case in its options.
  138.  
  139. ABWILD permits the entry of the Subordinate Program and its parameters 3 ways.
  140.    i) append the Subordinate Program, Parameters and Options to the end
  141.       of the ABWILD Command-Line.
  142.   ii) from a Disk-file whose name is specified in the ABWILD Command-Line 
  143.       using the Input-File-name option (ie, /IFxxx). 
  144.  iii) from the keyboard, after executing ABWILD with the Input-File-name
  145.       option which specifies the CONSOLE as the input device (ie, /IFcon).
  146.  
  147. The second and third methods permit the entry of multiple Subordinate Programs
  148. and their associated Parameters and Options. While the first method permits
  149. you to vary ABWILD's options for each Subordinate Program, the second and 
  150. third methods cause ABWILD to retain the initial options for each of them.
  151.  
  152. Please note that use of the Input-File-name option (ie, /IFxxx) causes all 
  153. non-ABWILD options on the Command-Line to be ignored. This means that the
  154. first Subordinate Program input method described above can NOT be combined 
  155. with the second or the third method.
  156.  
  157. ABWILD v0.97 - Extended Wild-card Batch-File Utility -         Page 4 of 7
  158. ==========================================================================
  159.  
  160. Something similar to the ABWILD Help screen is shown below. 
  161. Subsequently, each option will be explained briefly.
  162.  
  163. -------------------------------------------------------------------------------
  164. ABWILD v0.97 - Wild-card Batch-file Utility - (c)1993, AAB Enterprises, Inc.
  165.  Purpose: Provide extended Wild-card support using Batch-files.
  166. *** ABWILD is NOT Free or Public Domain!  It is UNREGISTERED Shareware! ***
  167.   Method: i) Find Wild-Cards(*?+=;) in Command-Line File-Descriptions.
  168.          ii) Generate Batch-File with NO Wild-Cards in File-Descriptions.
  169.         iii) Optionally Execute and Delete Batch-File.
  170.  
  171.   Syntax: ABWILD [/options] PROGRAM FileDesc [FileDesc2] [-options]
  172.  
  173.  Options:  /A=Append    !/NA=No-Append                  Wild.... {*} all ASCII
  174.           !/B=Break      /NB=No-Break-on-error          Wild.... {?} any ASCII
  175.  /?=Help   /C=Chg-dir   !/NC=No-Chg-dir                         /{+} any Alpha
  176.  /I=Info  !/D=Delete     /ND=No-Delete                  Wilder < {=} any Digit
  177.  /M=Mono   /E=Echo      !/NE=No-Echo                            \{;} any Other
  178.           !/F=Files      /NF=No-Files
  179.           !/P=Path-add   /NP=No-Path-add     /P#=Primary-file-desc......1=Dflt
  180.            /R=Recurse   !/NR=No-Recurse      /L#=Levels-to-recurse.....99=Dflt
  181.  ! is      /T=Trap-esc  !/NT=No-Trap-escape  /S#=Sub-dir-format...3/2/1/0=Dflt
  182. default    /V=Verbose   !/NV=No-Verbose    /ISxx=Ignore-String......repeatable
  183.  value    !/W=Wilder     /NW=No-Wilder     /IFxx=Input-File...........CON=Dflt
  184.           !/X=eXecute    /NX=No-eXecute    /OFxx=Output-File......ABW.BAT=Dflt
  185. *** Support Shareware!  $30/copy Registration Fee!  (plus $1/Node, $70max) ***
  186. AAB Enterprises, Inc, P.O.Box 42051, Mississauga, Ontario, CANADA, L5M-4Z4
  187. -------------------------------------------------------------------------------
  188.  
  189. ABWILD v0.97 - Extended Wild-card Batch-File Utility -         Page 5 of 7
  190. ==========================================================================
  191.  
  192. Normally, ABWILD generates a Batch-file which does not change Drives,
  193. Directories or Environment Variables during execution. However, the new option,
  194. '/C'=Change-directory causes ABWILD to insert statements into the Batch-file
  195. which WILL cause it to change to the appropriate Drive and/or Directory before
  196. executing the Sub-ordinate program. This is useful if the length of the
  197. Command-Line is greater than that permitted by DOS (ie, 128 characters). Since
  198. this option changes the current directory, the Command-line itself need not
  199. contain complete paths, so ABWILD generates statements accordingly.
  200.  
  201. ABWILD requires neither Expanded or Extended memory and will execute properly
  202. on a system with only 256kB. Since the program chosen to be executed under 
  203. ABWILD may be too large to fit in memory simultaneously with ABWILD, the 
  204. batch-file method chosen is the most appropriate. An option, '/NX'=NoExecute
  205. was added to ABWILD to help avoid the dreaded 'Insufficent Memory' error which
  206. would otherwise occur under these circumstances. After ABWILD has created the
  207. batch-file and exited back to DOS, the user can then manually execute the 
  208. batch-file.
  209.  
  210. ABWILD uses only the DOS internal DIR and CD commands to perform its functions
  211. and does not utilize the MS-DOSv5.0 /S enhancement to DIR. ABWILD will
  212. therefore work with older and obscure versions of MS-DOS. ABWILD has been
  213. tested with NEC-DOSv3.2, NEC-DOSv3.3, IBM-DOSv4.01 and MS-DOSv5.00. Since 
  214. ABWILD can be used to execute a program hundreds or thousands of times, a
  215. Disk-Cache and/or RAM-Drive are recommended.
  216.  
  217. ABWILD v0.97 - Extended Wild-card Batch-File Utility -         Page 6 of 7
  218. ==========================================================================
  219.  
  220. At this point, each option will be explained briefly.
  221.  
  222. *NB!*   Options preceded by the exclamation point are defaults and need not
  223.         be entered. They are included for documentation purposes and clarity.
  224.         All ABWILD options may be repeated on the Command-Line as many times
  225.         as space permits. This is only useful with the Ignore-String option
  226.         (ie, /ISxxx). Spacing between ABWILD is not required. Appropriate
  227.         punctuation for the Sub-ordinate program is dependant upon its
  228.         own individual requirements.
  229.  
  230. Option  Description
  231. /?      Displays the Help Screen
  232. /I      Displays the Info Screen
  233. /M      Uses only Monochrome compatible colours.
  234. /A      Appends Subordinate commands to existing Output-File.
  235. /NA     Clears Output-File prior to appending of Subordinate commands.
  236. /B      Breaks execution if a run-time error occurs in the Sub-ordinate program
  237. /NB     No Break. Ignores run-time errors in the Sub-ordinate Program.
  238. /C      Change-directory option. Causes ABWILD to insert the appropriate 
  239.         statements into the Batch-File such that it will change into the
  240.         directory being operated on. This is useful if the Sub-ordinate 
  241.         program's Command-Lines are longer than 128 characters.
  242. /NC     No-Change-directory. Opposite of /C.
  243. /D      Deletes Batch-File after execution.
  244. /ND     No-Delete. Does NOT delete the Batch-File after execution.
  245. /E      The first command in the Output-File enables echo during execution.
  246. /NE     The first command in the Output-File disables echo during execution.
  247. /F      Includes Files to match Wild-cards. (related to /S#)
  248. /NF     Excludes Files from matching wild-cards.
  249. /P      Adds same path to non-Primary wild-card file-descriptions without one.
  250. /NP     Does not add the same path to non-Primary wild-card file-descriptions.
  251. /R      Enables Sub-directory recursion. (also sets /L#=99)
  252. /NR     Disables Sub-directory recursion. (also sets /L#=0)
  253. /T      Trap-escape causes ABWILD to add two(2) statements after each occurence
  254.         of the Sub-ordinate program in the Batch-File. These statements
  255.         i) execute ABTRAP 0  ii) check for ERRORLEVEL -1 from ABTRAP.
  256.         if ABTRAP returns -1, the Batch-File will jump to its end LABEL, 
  257.         automatically inserted by ABWILD. Setting the /T option automatically
  258.         disables the /B option. The ABTRAP program will automatically be
  259.         executed with the /v option enabled if the ABWILD program was invoked
  260.         in the same way.
  261. /NT     Does not perform escape Trapping. 
  262. /V      Enables ABWILD's progress display. Adds '/v' to ABTRAP if '/T' is set.
  263. /NV     Disables ABWILD's progress display.
  264. /W      Enables ABWILD's Extended Wild-cards (ie, '+', '=' and ';')
  265. /NW     Disables ABWILD's Extended Wild-cards.
  266. /X      Executes Output-File after generating it.
  267. /NX     Does not execute Output-File.
  268. /L#     Specifies maximum number of levels of sub-directories to penetrate.
  269.         (if 0, also sets /NR. if > 0, also sets /R, default=99)
  270. /S#     Specfies type of Sub-Directory Name Matching (3, 2, 1 or 0=Default)
  271.         0= Sub-Directory Names not included
  272.         1= Sub-Directory Names included
  273.         2= Sub-Directory Names and Back-Slash included
  274.         3= Sub-Directory Names, Back-Slash and Wild-cards included
  275. /P#     Specifies which Wild-card File-Description is to be considered primary
  276.         when more than one is specified. Parameters and options ignored.
  277.         From left to right, the name of the Subordinate Program is offset 0.
  278.         Default is 1.
  279. /ISxxx  Specifies a string which is to be ignored for the purposes of
  280.         determining Wild-card File-Descriptions. ABWILD attempts to match the
  281.         /ISxxx string starting from the left-most character position of the 
  282.         Sub-ordinate Program's parameters. Therefore the ABWILD /ISxxx option
  283.         can instruct ABWILD to ignore leading strings only.
  284. /IFxxx  Specifies the name of an Input-File which contains one or more 
  285.         Subordinate Program Command-Line(s) containing Wild-cards.
  286.         If the special file-name of CON is used, ABWILD will accept multiple
  287.         Sub-ordinate Command-Lines from the keyboard, terminating upon 
  288.         receipt of an empty line.
  289. /OFxxx  Specifies the name of the Output-File into which the Subordinate 
  290.         Program's Command-Line(s) are to be inserted after having the Wild-cards
  291.         removed from the File-Description(s).
  292.         This file will be of the DOS BATch file format and may be executed.
  293.         Although it is preferred that the file's extension should be .BAT, 
  294.         it is not required.
  295.  
  296. ABWILD v0.97 - Extended Wild-card Batch-File Utility -         Page 7 of 7
  297. ===========================================================================
  298.  
  299. The examples below assume ABWILD, ABCHKSUM, ABTRAP and PKZIP have been 
  300. installed to a Sub-directory on the Hard-drive and a path to the appropriate 
  301. Sub-directory exists.
  302.  
  303. ABWILD comes with ABTRAP, a utility to permit ERRORLEVEL branching within
  304. a DOS Batch-file. There are several parameters for ABTRAP, please execute
  305. it for more detail. If you choose to use the /T option of ABWILD, 
  306. please be aware of the fact that ABTRAP must be found in one of the DOS
  307. directories described in the PATH environment variable.
  308.  
  309. ABWILD comes with ABCHKSUM, a utility to generate checksums for a file. 
  310. ABCHKSUM does NOT support wild-cards and is therefore suitable as a test 
  311. program for ABWILD. ABCHKSUM does not provide a proper ERRORLEVEL upon exiting,
  312. and therefore is a good candidate for testing the '/T'=Trap-escape option.
  313. ABCHKSUM outputs its results to the screen, and this can be re-directed to 
  314. a file if desired through the use of its /OFxx option.
  315.  
  316. For example...
  317.  
  318. C:\>ABWILD /r/v/nx/t ABCHKSUM c:\+++*.COM /ofABCHKSUM.TXT
  319.  
  320. Will generate a Batch-File called ABW.BAT in the CURRENT directory.
  321. Will recurse ALL Sub-Directories starting at C:\
  322. Will find only .COM files whose name begins with at least 3 Alphabetics.
  323. Will generate a complete statement containing NO wild-cards.
  324. Will append the results of this execution of ABWILD onto a file called
  325.      ABCHKSUM.TXT in the CURRENT Directory.
  326. Will provide verbose reporting of ABWILD's status while generating
  327.      the batch-file and add the '/v' option to the ABTRAP program's options.
  328. Will NOT execute the batch-file.
  329.  
  330. Since ABWILD is useful with PKZIP, an example is probably warranted.
  331.  
  332. Regardless of how a system changes, a batch file containing these 
  333. statements will compress an entire system of four partitions into 
  334. individual .ZIP files corresponding to the name of the Sub-Directories
  335. they contain. This can be performed before backing up to Tape. This is
  336. useful if your tape drive software does not perform compression.
  337.  
  338. ABWILD /v /p2 /s3 /nr /is-x*.zip PKZIP -r -P *.zip c:\*.* -x*.zip
  339. ABWILD /v /p2 /s3 /nr /is-x*.zip PKZIP -r -P *.zip d:\*.* -x*.zip
  340. ABWILD /v /p2 /s3 /nr /is-x*.zip PKZIP -r -P *.zip e:\*.* -x*.zip
  341. ABWILD /v /p2 /s3 /nr /is-x*.zip PKZIP -r -P *.zip f:\*.* -x*.zip
  342.  
  343. (the above four lines can be put into a batch-file, but if you haven't
  344.  registered, ABWILD will wait for keyboard input during each execution!)
  345.  
  346. ...or...  (for those of you who haven't registered!)
  347.  
  348. ABWILD /v /p2 /s3 /nr /is-x*.zip /ifCON
  349. Additional Parameters ? pkzip -r -P *.zip c:\*.* -x*.zip
  350. Additional Parameters ? pkzip -r -P *.zip d:\*.* -x*.zip
  351. Additional Parameters ? pkzip -r -P *.zip e:\*.* -x*.zip
  352. Additional Parameters ? pkzip -r -P *.zip f:\*.* -x*.zip
  353. Additional Parameters ?
  354.  
  355. (Method#2, obviously can NOT be used with a batch-file, but if you haven't
  356.  registered, and can't wait around to perform keyboard input,
  357.  this is your best bet!)
  358.  
  359. Since the Path-add option (ie, /P) is a default, the .ZIP files will end 
  360. up in the root directories of the corresponding Hard-drive Partitions. 
  361. However, since there may not be enough free disk space to handle these
  362. large .ZIP files, the destinations can be changed. For example, let's assume
  363. that the drives F: and E: contain the greatest amount of free space...
  364.  
  365. ABWILD /v /p2 /s3 /nr /is-x*.zip PKZIP -r -P f:\*.zip c:\*.* -x*.zip
  366. ABWILD /v /p2 /s3 /nr /is-x*.zip PKZIP -r -P f:\*.zip d:\*.* -x*.zip
  367. ABWILD /v /p2 /s3 /nr /is-x*.zip PKZIP -r -P f:\*.zip e:\*.* -x*.zip
  368. ABWILD /v /p2 /s3 /nr /is-x*.zip PKZIP -r -P e:\*.zip f:\*.* -x*.zip
  369.  
  370. Since the add-Path option only operates on Wild-card File-Descriptions
  371. which specify neither Drive or Path, it is not necessary to specify /NP.
  372.  
  373. This documentation will be expanded upon in future releases.
  374. Registered users will receive documentation which is both more professional 
  375. in appearance and more detailed in content.
  376.  
  377. For now, 
  378.          THAT'S ALL FOLKS!
  379.  
  380. *** ABWILD is NOT Free or Public Domain!  It is UNREGISTERED Shareware! ***
  381. *** Support Shareware!  $20/copy Registration Fee!  (plus $1/Node, $50max) ***
  382. AAB Enterprises, Inc, P.O.Box 42051, Mississauga, Ontario, CANADA, L5M-4Z4
  383.  
  384.